package app.util;

public class Path {

	public static class Web {
		public static final String ROOT = "/";
		public static final String LIST = "/list";
		public static final String ADD = "/add";
		public static final String DEL = "/del";
		public static final String BOOKS = "/books";
		public static final String STATISTIC = "/statistic";
		public static final String STRESULT = "/stresult";
		public static final String BOOKSBYMONTH = "/booksbymonth";
		public static final String BOOKCOUNTBYDATE = "/countbydate";
	}

	public static class Template {
		public final static String INDEX = "index.mustache";
		public final static String STATISTIC = "statistic.mustache";
	}
	
	public static class Location {
		public static String getRecordsDBLocation() {
			java.nio.file.Path dbFilePath = java.nio.file.Path.of(System.getProperty("user.dir"), "records", "records.db");
			return dbFilePath.toAbsolutePath().toString();
		}
	}

}
